package com.ridbor001.demo.bean;

import java.util.UUID;

public class RDBCourse {
    private String courseId;     // 课程唯一标识（建议用UUID）
    private String courseName;   // 课程名称
    private String semester;     // 开课学期
    private String teacherId;    // 关联教师ID



    public RDBCourse(String courseName, String semester, String teacherId) {
        this.courseId = UUID.randomUUID().toString();
        this.courseName = courseName;
        this.semester = semester;
        this.teacherId = teacherId;
    }

    public RDBCourse(){}

    public RDBCourse(String courseId, String courseName, String semester, String teacherId) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.semester = semester;
        this.teacherId = teacherId;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

   }